﻿using System;
using System.Collections.Generic;

using System.Windows.Forms;

namespace Movies
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
       
        [STAThread]
        static void Main()
        {
            HelperSettingProvider.SettingLocation(Properties.Settings.Default.dataStoreLocation + "\\AppData");

            String firstName = HelperSettingProvider.Default().FirstName;
            String lastName = HelperSettingProvider.Default().LastName;
            String nickName = HelperSettingProvider.Default().NickName;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (!Properties.Settings.Default.migrationDone)
            {
                Application.Run(new FormMigrateData());
            }
            if (HelperSettingProvider.Default().NameChangeInterest.Trim().Equals("true") && firstName.Trim().Equals("") && nickName.Trim().Equals(""))
            {
                Application.Run(new FormNameInputWin(false));
            }
                Application.Run(new FormMainWindow());
        }

    }
}
